//
//  PicCollectionViewCellOfCollection.m
//  UI_Project_A
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 GH. All rights reserved.
//

#import "PicCollectionViewCellOfCollection.h"

@interface PicCollectionViewCellOfCollection ()




@end


@implementation PicCollectionViewCellOfCollection


- (void)dealloc {

    [_imageView release];
    [super dealloc];

}




- (instancetype)initWithFrame:(CGRect)frame {


    self = [super initWithFrame:frame];
    

    if (self) {
        
        [self createImage];
    }


    return self;

}



- (void)createImage {


    self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]];

    [self.contentView addSubview:self.imageView];
    [self.imageView release];
}



- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {

self.imageView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    

}










@end
